import http from '@/http'



// 获取系统编码生成规则列表数据
export const getGenerateData = function (params) {
    return http.ajax('GET', 'api/sysrulegenerate/page', params)
}

// 不分页查询
export const allGenerate = function () {
    return http.ajax('GET', 'api/sysrulegenerate/search')
}


// 新增 
export const saveGenerate = function (params) {
    return http.ajax(params.id ? "PUT" : "POST", 'api/sysrulegenerate', params)
}


// 删除
export const deleteGenerate = function (ids) {
    return http.ajax('DELETE', `api/sysrulegenerate/${ids}`)
}

// 预览
export const testGenerate = function (params) {
    return http.ajax('POST', 'api/sysrulegenerate/functionTest', params)
}

// 功能测试
export const getGenerateBatch = function (params) {
    return http.ajax('GET', 'api/sysrulegenerate/functionBatchTest', params)
}